import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;



class Com implements Comparable<Com>{
	
	private int parameter1;
	@Override
	public int compareTo(Com o) {
		return o.parameter1 < parameter1 ? 1 : (o.parameter1 == parameter1 ? 0 : -1) ;
	}
	
}


class Ser implements Serializable{
	
	private Integer inte;
	private int in;
	
	public Ser(Integer inte, int in) {
		super();
		this.inte = inte;
		this.in = in;
	}

	public Integer getInte() {
		return inte;
	}

	public void setInte(Integer inte) {
		this.inte = inte;
	}

	public int getIn() {
		return in;
	}

	public void setIn(int in) {
		this.in = in;
	}
}

public class Arr {
	{
		List list = new ArrayList();
		list.add(new Integer(1));
		Integer intEle = (Integer) list.get(0);
		list.add(new String("2"));
		Integer intEle1 = (Integer) list.get(1);
	}
	
	
	public static void reverseStr(String src){
		char[] ch = src.toCharArray();
		StringBuilder sb = new StringBuilder(src.length());
		String segment = " " ;
		for(int i = ch.length -1; i>-1; --i){
			segment = (ch[i]+segment);
			if(i==0){
				sb.append(segment);
			}else
				if(ch[i]== ' '){
					sb.append(segment);
					segment = " ";
				}
		}
		System.out.println(sb);
	}
}


